{volist name="list" id="rs"}
<li class="aui-list-item question-list-item answer-id-{$rs['answer_id']}">
    <div class="aui-media-list-item-inner">
        <div class="aui-list-item-media" style="width: 3rem;padding-top: 10px;">
            <img src="{:img($rs['user_head_url'], 100, 100)}" class="aui-img-round aui-list-img-sm">
        </div>
        <div class="aui-list-item-inner">
            <div class="aui-list-item-text">
                <div class="aui-list-item-title aui-font-size-14">{$rs['is_anonymous'] ? '匿名' : $rs['user_name']}</div>
                {eq name="info.is_set_best" value="0"}
                    {eq name="_user_id" value="$info['user_id']"}
                        <div class="aui-list-item-right set_best btn-confirm-opt" style="color: #ff6e00 !important;" msg="确认设为最佳答案？" href="{:url('Answer/set_best', array('answer_id' => $rs['answer_id']))}">设为最佳</div>
                    {/eq}
                {/eq}
            </div>
            <div class=" question-content answer-content">
                {:str_replace("<br>", "", $rs['content_img'])}
            </div>
            <div class="aui-list-item-text">
                <span style="color: #a0a0a0;">{$rs['time_ago_desc']}</span>
                <div>
                    <a style="color: #a0a0a0;" class="praise opt-tip {$rs['is_praise'] ? 'on' : ''}" href="{:url('Answer/praise', array('answer_id' => $rs['answer_id']))}">
                        <i class="icon-like"></i> 
                        <span class="praise_num">{$rs['praise_num']}</span>
                    </a>
                    <a style="color: initial;" class="view-comment answer-comment-{$rs['answer_id']}" data-object-id="{$rs['answer_id']}" data-count="{$rs['comment_count']}" data-show="comment-list-{$rs['answer_id']}">
                        <i class="icon-comment-icon"></i> 
                        <span class="comment_num comment_num-{$rs['answer_id']}">{$rs['comment_num'] ? $rs['comment_num'] : ''}</span>
                    </a>
                </div>
            </div>
            <div class="aui-list-item-text ">
                <ul class="aui-list aui-media-list comment-list comment-list-{$rs['answer_id']}"">
                {gt name="rs.comment_count" value="0"}
                    
                    {volist name="rs.comment_list" id="tr" key="kk"}
                        <li class="aui-list-item view-comment commen-item comment-reply-{$tr['comment_id']} commen-item-{$rs['answer_id']}  commen-item-show  commen-item-show-{$rs['answer_id']}" data-user="{:model('Comment')->getUserNameAttr($tr['user_id'])}" style="padding-top: 0;padding-bottom: 0;" data-object-id="{$rs['answer_id']}" data-reply-id="{$tr['comment_id']}" data-count="{$rs['comment_count']}">
                            <div class="aui-media-list-item-inner">
                                <div class="aui-list-item-inner">
                                    <div class="aui-list-item-text">
                                        <div class="aui-list-item-title" style="color:#454545;font-size:0.5rem;">
                                            {notempty name="tr.reply_user_name"}
                                            <span class="comment-user-name" >{:model('Comment')->getUserNameAttr($tr['user_id'])}</span> 回复
                                            <span class="comment-user-name" >{$tr['reply_user_name']}</span> 
                                            {else/}
                                            <span class="comment-user-name" >{:model('Comment')->getUserNameAttr($tr['user_id'])}</span>
                                            {/notempty} 
                                        </div>
                                        <div class="aui-list-item-right" style="width: initial;color:#454545;">{$tr['time_ago_desc']} 
                                            {eq name="_user_id" value="$tr['user_id']"}
                                            <i class="icon-delete commoen-delete btn-confirm-opt" href="{:url('Comment/delete', array('comment_id' => $tr['comment_id']))}" del-class="comment-reply-{$tr['comment_id']}" msg="您确认要删除此评论？" label-class="answer-comment-{$rs['answer_id']} .comment_num"></i>
                                            {/eq}
                                        </div>
                                    </div>
                                    <div class="aui-list-item-text " style="color:#454545;">{$tr['content']}</div>
                                </div>
                            </div>
                        </li>
                    {/volist}
                {/gt}
                </ul>
            </div>
        </div>
    </div>
</li>
{/volist}